package com.bjpowernode.threadpool.size;

public class Test {

    public static void main(String[] args) {
        //通过Java代码获取可用的CPU核心数
        int processors = Runtime.getRuntime().availableProcessors();
        System.out.println(processors);
    }
}
